package com.pactera.madp.cp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pactera.madp.cp.api.entity.crm.WorkPreSavedeptInfoEntity;
import com.pactera.madp.cp.mapper.WorkPreSavedeptInfoMapper;
import com.pactera.madp.cp.service.WorkPreSavedeptInfoService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class WorkPreSavedeptInfoServiceImpl extends ServiceImpl<WorkPreSavedeptInfoMapper, WorkPreSavedeptInfoEntity> implements WorkPreSavedeptInfoService {

    @Transactional(rollbackFor = Exception.class)
    @Override
    public boolean batchSaveOrUpdate(List<WorkPreSavedeptInfoEntity> list) {
        return this.saveOrUpdateBatch(list);
    }

}
